<template>
  <div class="helloworld">
      {{ message }}
      <button @click="emitEvent">发射事件</button>
  </div>
</template>

<script setup>
import { defineProps, defineEmits } from 'vue'
const props = defineProps({
  message: {
    type: String,
    default: 'hahaha'
  }
})
const emit = defineEmits(['increment', 'decrement'])
const emitEvent = () => {
  emit('increment', '2000')
}
console.log(props)
</script>

<style scoped>

</style>
